package org.example.service.model;

import jakarta.validation.constraints.NotBlank;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import java.util.Date;

/**
 * @xietl
 * @date 2025/8/26  08:51
 * @description 贴子实体
 */
@Data
public class invitation {
    private Integer id;                 //id
    @NotBlank(message = "帖子标题不可为空")
    @Length(max = 100, message = "标题不能超过100字符")
    private String postTitle;         //帖子标题
    @NotBlank(message = "帖子内容不可为空")
    private String postContent;       //帖子内容
    private String userName;          //作者名称
    private Date createTime;           //创建时间
    private Integer status;            //发布状态(0:草稿，1:已发布，2:已删除)
    @NotBlank(message = "分类名不可空")
    private String categoryName;      //分类名
    @NotBlank(message = "封面图片不可为空")
    private String coverImage;         //封面图片URL
    private Integer viewCount;         //阅读量
    private Integer commentCount;      //评论数
    private Integer likeCount;       //点赞数
}
